import { get, post } from '@/utils/request'
const BASE_URL = window.baseUrl.dispose

/** 行为列表 */
export function tableList(query) {
  return post(BASE_URL + '/portrayalAll/list', query)
}

/** 本地文件操作情况 */
export function fileBehavior(query) {
  return post(BASE_URL + '/frequency/fileBehavior', query)
}
/** 获取防护软件部署情况 */
export function software(query) {
  return post(BASE_URL + '/frequency/software', query)
}
// 违规及异常告警-获取事件概览
export function overview(query) {
  return post(BASE_URL + '/portrayal/event/overview', query)
}
// 违规及异常告警-事件发生排行
export function ranking(query) {
  return post(BASE_URL + '/portrayal/event/trigger/ranking', query)
}
// 获取事件发生趋势
export function trend(query) {
  return post(BASE_URL + '/portrayal/event/trigger/trend', query)
}
// 获取查询标签
export function tag(query) {
  return get(BASE_URL + '/portrayalAll/filter/tag', query)
}
// 通过id查询信息
export function queryById(id) {
  return get(BASE_URL + '/portrayalAll/queryById', {id})
}